//
//  CustomDetailViewController.h
//  NewsReader
//
//  Created by blacksun on 10-11-10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Feed.h"
@class FeedDetailViewController;
@class ItemListController;



@interface CustomDetailViewController : UIViewController<UIScrollViewDelegate> {
	NSInteger currentIndex;
	NSMutableArray *feeds;
	UIScrollView *scrollView;
	NSOperationQueue *operationQueue;
	UIView *loadingView;
	ItemListController *parentController;
	BOOL isUpdateing;
	NSInteger lastIndex;
	NSInteger lastRestIndex;
	NSMutableArray  *freeDetailControllers;
	NSMutableDictionary *workingControllers;
}
@property (nonatomic, retain) NSMutableArray  *freeDetailControllers;
@property (nonatomic, retain) NSMutableDictionary *workingControllers;
@property (nonatomic, retain) IBOutlet UIView *loadingView;
@property (nonatomic, retain) ItemListController *parentController;
@property (nonatomic, assign) NSInteger currentIndex;
@property (nonatomic, retain) NSMutableArray *feeds;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) NSOperationQueue *operationQueue;

- (void)loadScrollViewWithPage:(NSInteger)page;
- (void)showLoadingView:(BOOL)needAnimation;
-(void)updateSucess;
-(void)displayView:(NSString *)indexStr;
@end
